


var p = prompt('请输入你要买的机票月份');







if (p>= 5 && p <= 10){
    var a = prompt('请问您是买头等舱还是经济舱');
    if (a == "头等舱"){
        console.log('头等舱2000');
    }else {
        console.log('经济舱800');
    }
}else{
    var c = prompt('请问您是买头等舱还是经济舱');
    if (c == '头等舱'){
        console.log('头等舱800');
    }else {
        console.log('经济舱200');
    }

}





